<!DOCTYPE html>
<html>
  <head>
    <meta charset="UTF-8" />
    <title>2.事件对象</title>
  </head>
  <body>
    <button id="btn">点我</button>

    <script type="text/javascript" >
      const btn = document.getElementById('btn')

      btn.addEventListener('click',function(x){
        console.log('你点我了',x)
        console.log(x.target)
      })
    </script>
  </body>
</html>